Now on: joopl.Type
Represents type information and provides access to types' metadata.
Properties
Methods
getAttribute
(
joopl.Attribute
-
An
Gets an attribute instance by giving its type, if the type has the whole attribute
Parameters:
-
An
joopl.Attributeattribute class definition (rather than an instance!)
Returns:
joopl.Attribute:
The attribute instance or null
if the type does not have the given attribute type
Example:
myNamespace.MyClass.type.getAttribute(this.MyAttribute);
hasAttribute
(
-
The
Determines whether a given type has an attribute giving its class (rather than giving an instance!)
Parameters:
-
The
joopl.Attributewhole attribute class
Example:
this.SomeClass.type.hasAttribute(SomeAttribute);
Properties
fullName
String
Gets current type name including full namespace path (f.e. "joopl.test.MyClass")
name
String
Gets type name (f.e. "MyClass")